package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.Disease;
import cn.topevery.garden.entity.query.DiseaseQuery;
import cn.topevery.garden.entity.vo.DiseaseVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;

/**
 * 病虫害表
 *
 * @author code-generate
 * @date 2022-01-05
 */
public interface DiseaseDao extends BaseDao<Disease> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<DiseaseVO> listPage(DiseaseQuery query);

    Disease getEntityByColumn(String key,String value);

    DataPager<DiseaseVO> getList(DiseaseQuery query);
    void update(Disease disease,Integer userId);
    void insert(Disease disease,Integer userId);
    void deleteByIds(List<String> ids, List<String> months);
    Disease getByIdAndMonth(Integer id);

}
